package xposed.auxiliary;


import de.robv.android.xposed.XSharedPreferences;

public class PreferencesUtils {

    private static XSharedPreferences instance = null;

    private static XSharedPreferences getInstance() {
        if (instance == null) {
            instance = new XSharedPreferences(PreferencesUtils.class.getPackage().getName());
            instance.makeWorldReadable();
        } else {
            instance.reload();
        }
        return instance;
    }

    public static boolean open() {
        return getInstance().getBoolean("open", false);
    }
	
	public static boolean open1() {
        return getInstance().getBoolean("open1", false);
    }
	
	public static boolean notSelf() {
        return getInstance().getBoolean("notSelf", false);
    }
	
	public static boolean notWhisper() {
        return getInstance().getBoolean("notWhisper", false);
    }

	public static boolean notMute() {
        return getInstance().getBoolean("notMute", false);
    }
	
	public static boolean quickOpen() {
        return getInstance().getBoolean("quickOpen", false);
    }
	
    public static boolean password() {
        return getInstance().getBoolean("password", false);
    }

    public static boolean delay() {
        return getInstance().getBoolean("delay", false);
    }
	
	public static boolean delay1() {
        return getInstance().getBoolean("delay1", false);
    }

    public static int delayTime() {
        return getInstance().getInt("delay_time", 0);
    }
	
	public static int delayTime1() {
        return getInstance().getInt("delay_time1", 0);
    }
	
	public static boolean diceCheat() {
        return getInstance().getBoolean("dice_cheat", false);
    }

    public static int diceNum() {
        return Integer.parseInt(getInstance().getString("dice_num", "0"));
    }

    public static boolean moraCheat() {
        return getInstance().getBoolean("mora_cheat", false);
    }

    public static int moraNum() {
        return Integer.parseInt(getInstance().getString("mora_num", "0"));
    }
}
